package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Owner;
import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.query.OwnerQuery;
import org.springframework.data.domain.Page;

import java.util.List;


public interface IOwnerService {


    /**
     * 查询单个对象
     * @param id
     * @return Owner
     */
    Owner get(String id);

    /**
     * 查询对象集合
     * @param
     * @retownerrn
     */
    List<Owner> listAll();


    /**
     * 用于分页排序,高级查询
     * @param
     */

    Page<Owner> query(OwnerQuery qo);

    /**
     * 添加游记评论
     * @param travelCommen
     * @param userInfo
     */


    /**
     * 新增操作
     * @param owner
     */
    void save(Owner owner);


    void commentAdd(Owner comment);

    void addComment(Owner comment, UserInfo userInfo);

    int countNum(String ownerId,String userId);
    void updateOwner(Owner owner );
}
